package com.qtt.app.mapper;

import com.qtt.app.entity.AppComment;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface AppCommentMapper {
    int deleteByPrimaryKey(Long appcommentId);

    int insert(AppComment record);

    int insertSelective(AppComment record);

    AppComment selectByPrimaryKey(Long appcommentId);

    int updateByPrimaryKeySelective(AppComment record);

    int updateByPrimaryKey(AppComment record);

    AppComment getCommentByUserAndOrderId(Long userId, String orderId);

    List<AppComment> getCourseCommentList(@Param("courseId") String courseId);
}